﻿@model ApplicationUser

@{
    string imageUrl = "/img/no-avatar.png?w=100&h=100";

    if (!String.IsNullOrWhiteSpace(Model.ImageUrl))
    {
        imageUrl = Model.ImageUrl + "?w=100&h=100";
    }
}

<div class="user-panel">
    <div class="pull-left image">
        <img src="@imageUrl" class="img-circle avatar-user" />
    </div>
    <div class="pull-left info">
        <p>@Model.Name</p>
        <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
    </div>
</div>